﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ComeSeeThis_MVC2.Models.aspnet_Roles>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Roles
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Roles</h2>
    <% Html.RenderPartial("SubMenu"); %>
    <table>
        <tr>
            <th>
            </th>
            <th>
                RoleName
            </th>
            <th>
                Description
            </th>
            <th>Operations</th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "RoleEdit", new { id=item.RoleId }) %>
                |
                <%: Html.ActionLink("Details", "RoleDetails", new { id=item.RoleId })%>
                |
                <%: Html.ActionLink("Delete", "RoleDelete", new { id=item.RoleId })%>
            </td>
            <td>
                <%: item.RoleName %>
            </td>
            <td>
                <%: item.Description %>
            </td>
            <td>
                <%: Html.ActionLink("Edit", "RoleAddOperations", new { id=item.RoleId })%>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
        <%: Html.ActionLink("Create New", "RoleAdd") %>
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="BodyTagContent" runat="server">
</asp:Content>
